package com.yidu.ladder.system.domain;

import java.io.Serializable;

/**
 * 组织结构实体类
 * 
 * @since 2019年11月26日
 * @author {群主老王}
 */
public class Org implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4678509976450795281L;
	/**
	 * 字段
	 */
	private String orgId, orgName, parentId, subsetId, subsetName, staffId, staffName, orgLocation, description,
			useable;

	public Org() {
	}

	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getSubsetId() {
		return subsetId;
	}

	public void setSubsetId(String subsetId) {
		this.subsetId = subsetId;
	}

	public String getSubsetName() {
		return subsetName;
	}

	public void setSubsetName(String subsetName) {
		this.subsetName = subsetName;
	}

	public String getStaffId() {
		return staffId;
	}

	public void setStaffId(String staffId) {
		this.staffId = staffId;
	}

	public String getStaffName() {
		return staffName;
	}

	public void setStaffName(String staffName) {
		this.staffName = staffName;
	}

	public String getOrgLocation() {
		return orgLocation;
	}

	public void setOrgLocation(String orgLocation) {
		this.orgLocation = orgLocation;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getUseable() {
		return useable;
	}

	public void setUseable(String useable) {
		this.useable = useable;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((description == null) ? 0 : description.hashCode());
		result = prime * result + ((orgId == null) ? 0 : orgId.hashCode());
		result = prime * result + ((orgLocation == null) ? 0 : orgLocation.hashCode());
		result = prime * result + ((orgName == null) ? 0 : orgName.hashCode());
		result = prime * result + ((parentId == null) ? 0 : parentId.hashCode());
		result = prime * result + ((staffId == null) ? 0 : staffId.hashCode());
		result = prime * result + ((staffName == null) ? 0 : staffName.hashCode());
		result = prime * result + ((subsetId == null) ? 0 : subsetId.hashCode());
		result = prime * result + ((subsetName == null) ? 0 : subsetName.hashCode());
		result = prime * result + ((useable == null) ? 0 : useable.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Org other = (Org) obj;
		if (description == null) {
			if (other.description != null)
				return false;
		} else if (!description.equals(other.description))
			return false;
		if (orgId == null) {
			if (other.orgId != null)
				return false;
		} else if (!orgId.equals(other.orgId))
			return false;
		if (orgLocation == null) {
			if (other.orgLocation != null)
				return false;
		} else if (!orgLocation.equals(other.orgLocation))
			return false;
		if (orgName == null) {
			if (other.orgName != null)
				return false;
		} else if (!orgName.equals(other.orgName))
			return false;
		if (parentId == null) {
			if (other.parentId != null)
				return false;
		} else if (!parentId.equals(other.parentId))
			return false;
		if (staffId == null) {
			if (other.staffId != null)
				return false;
		} else if (!staffId.equals(other.staffId))
			return false;
		if (staffName == null) {
			if (other.staffName != null)
				return false;
		} else if (!staffName.equals(other.staffName))
			return false;
		if (subsetId == null) {
			if (other.subsetId != null)
				return false;
		} else if (!subsetId.equals(other.subsetId))
			return false;
		if (subsetName == null) {
			if (other.subsetName != null)
				return false;
		} else if (!subsetName.equals(other.subsetName))
			return false;
		if (useable == null) {
			if (other.useable != null)
				return false;
		} else if (!useable.equals(other.useable))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Org [orgId=" + orgId + ", orgName=" + orgName + ", parentId=" + parentId + ", subsetId=" + subsetId
				+ ", subsetName=" + subsetName + ", staffId=" + staffId + ", staffName=" + staffName + ", orgLocation="
				+ orgLocation + ", description=" + description + ", useable=" + useable + "]";
	}

	public Org(String orgId, String orgName, String parentId, String subsetId, String subsetName, String staffId,
			String staffName, String orgLocation, String description, String useable) {
		super();
		this.orgId = orgId;
		this.orgName = orgName;
		this.parentId = parentId;
		this.subsetId = subsetId;
		this.subsetName = subsetName;
		this.staffId = staffId;
		this.staffName = staffName;
		this.orgLocation = orgLocation;
		this.description = description;
		this.useable = useable;
	}

}
